package cn.edu.cug.cs.gtl.plugins.hello;

import cn.edu.cug.cs.gtl.apis.ui.AbstractApplication;
import cn.edu.cug.cs.gtl.apis.ui.actions.AbstractActions;
import cn.edu.cug.cs.gtl.apis.ui.actions.HelloActions;
import cn.edu.cug.cs.gtl.plugins.hello.actions.HelloMessageAction;
import org.pf4j.Extension;
import org.pf4j.Plugin;

public class HelloPlugin extends Plugin {

        public HelloPlugin() {
            super();
        }

        @Override
        public void start() {
            super.start();
        }

        @Override
        public void stop() {
            super.stop();
        }

        @Override
        public void delete() {
            super.delete();
        }

        @Extension
        public static class HelloActionsImpl extends AbstractActions implements HelloActions {

            @Override
            public void initialize(AbstractApplication theApp) {
                HelloMessageAction helloMessageAction = new HelloMessageAction();
                helloMessageAction.initialize(theApp);
                addAction(helloMessageAction);
            }
        }
}
